Skip to content

fix: Make adaptive-crawler extra importable#2016

Merged
vdusek merged 1 commit into
masterfrom
fix/adaptive-crawler-extra
Jul 3, 2026
Merged

fix: Make adaptive-crawler extra importable#2016
vdusek merged 1 commit into
masterfrom
fix/adaptive-crawler-extra

Conversation

@vdusek

@vdusek vdusek commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Problem

pip install 'crawlee[adaptive-crawler]' couldn't import AdaptivePlaywrightCrawler, because the module imports bs4 and parsel at the top level while the extra didn't include them.

Changes

The adaptive-crawler extra now pulls in crawlee[beautifulsoup,parsel], using the same self-referencing pattern as the all extra.

Verification

Installed only the adaptive-crawler extra into a clean venv, then imported AdaptivePlaywrightCrawler and constructed both the BeautifulSoup and Parsel static-parser factories.

@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Jul 3, 2026
@vdusek vdusek self-assigned this Jul 3, 2026
@vdusek vdusek requested a review from Pijukatel July 3, 2026 07:58
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.39%. Comparing base (7780e78) to head (33177ab).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2016      +/-   ##
==========================================
+ Coverage   93.35%   93.39%   +0.04%     
==========================================
  Files         179      179              
  Lines       12482    12482              
==========================================
+ Hits        11652    11658       +6     
+ Misses        830      824       -6     
Flag Coverage Δ
unit 93.39% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes packaging for the adaptive-crawler optional extra so that pip install 'crawlee[adaptive-crawler]' can successfully import AdaptivePlaywrightCrawler by ensuring the extra also brings in the BeautifulSoup (bs4/html5lib) and Parsel dependencies that are imported at module import time.

Changes:

  • Make adaptive-crawler depend on crawlee[beautifulsoup,parsel] (self-referencing extras pattern already used by all).
  • Regenerate/update uv.lock to reflect the new extra dependency graph and metadata.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updates adaptive-crawler extra to include crawlee[beautifulsoup,parsel], ensuring transitive installation of bs4/parsel requirements.
uv.lock Updates locked optional-dependency and requires-dist metadata so the lock reflects the new adaptive-crawler extra composition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vdusek vdusek merged commit b850cd6 into master Jul 3, 2026
38 checks passed
@vdusek vdusek deleted the fix/adaptive-crawler-extra branch July 3, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants